package com.google.code.sip.ucenter.ws.dto;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.google.code.sip.ucenter.model.CreditOperation;
import com.google.code.sip.ucenter.ws.adapter.DateAdapter;

/**
 * 积分日志传输类
 * 
 * @author Liuye
 * 
 */
@XmlRootElement(name = "creditLog")
@XmlSeeAlso(BaseDto.class)
@XmlAccessorType(XmlAccessType.FIELD)
@SuppressWarnings("serial")
public class CreditLogDto extends BaseDto {
	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 用户昵称
	 */
	private String nickName;

	/**
	 * 操作
	 */
	private CreditOperation operation;

	/**
	 * 积分规则名称
	 */
	private String creditRuleName;

	/**
	 * 积分规则动作
	 */
	private String creditRuleAction;

	/**
	 * 积分类型名称
	 */
	private String creditTypeName;
	/**
	 * 积分类型标题
	 */
	private String creditTypeTitle;

	/**
	 * 积分值
	 */
	private int amount;
	/**
	 * 创建日期
	 */
	@XmlJavaTypeAdapter(DateAdapter.class)
	private Date createdDate;

	/**
	 * 描述信息
	 */
	private String remark;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public CreditOperation getOperation() {
		return operation;
	}

	public void setOperation(CreditOperation operation) {
		this.operation = operation;
	}

	public String getCreditRuleName() {
		return creditRuleName;
	}

	public void setCreditRuleName(String creditRuleName) {
		this.creditRuleName = creditRuleName;
	}

	public String getCreditRuleAction() {
		return creditRuleAction;
	}

	public void setCreditRuleAction(String creditRuleAction) {
		this.creditRuleAction = creditRuleAction;
	}

	public String getCreditTypeName() {
		return creditTypeName;
	}

	public void setCreditTypeName(String creditTypeName) {
		this.creditTypeName = creditTypeName;
	}

	public String getCreditTypeTitle() {
		return creditTypeTitle;
	}

	public void setCreditTypeTitle(String creditTypeTitle) {
		this.creditTypeTitle = creditTypeTitle;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
